package com.ch.lifecycledemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.SystemClock
import android.widget.Chronometer

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val myChronometer: MyChronometer = findViewById(R.id.chronometer)
        lifecycle.addObserver(myChronometer)
    }


}